package cn.tellsea.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Tellsea
 * @date 2021/12/25
 */
@RestController
public class MessageController {

    /**
     * 测试服务调用-需要授权
     *
     * @param message
     * @return
     */
    @GetMapping("/provider/oauth/{message}")
    public String oauth(@PathVariable("message") String message) {
        return "[服务调用成功]：" + message;
    }

    /**
     * 测试服务调用-无需授权
     *
     * @param message
     * @return
     */
    @GetMapping("/provider/message/{message}")
    public String message(@PathVariable("message") String message) {
        return "[服务调用成功]：" + message;
    }
}
